package com.example.administrator.memo;

/**
 * Created by Administrator on 2017/1/6.
 */
import  android.app.Activity;
import  android.os.Bundle;
import  android.widget.VideoView;
public class AtyVideoViewer extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState ){
        super.onCreate(savedInstanceState);
        vv= new VideoView(this);
        setContentView(vv);

        String path=getIntent().getStringExtra(EXTRA_PATH);
        if(path!=null){
            vv.setVideoPath(path);
        }
        else{
            finish();
        }
    }
    private VideoView vv;

    public static final String EXTRA_PATH ="path";
}
